//
//  CommentLandscapeCell.m
//  TodayComment
//
//  Created by 张吉阳 on 15/9/12.
//  Copyright (c) 2015年 xianrenmoshi. All rights reserved.
//

#import "CommentLandscapeCell.h"

@implementation CommentLandscapeCell

- (void)setCellData:(ColumnInfo *)info
{
    [super setCellData:info];
    
    if (_widget == nil) {
        _widget = [[CommentWidget alloc] init];
        _widget.columnInfo = info;
        _widget.owner = self.owner;
        _widget.view.frame = self.bounds;
        [self addSubview:_widget.view];
       
    }
    else {
        _widget.columnInfo = info;
        [_widget reloadData];
    }
}

@end
